import Vue from 'vue'
import App from './App.vue'
import router from "./router"
import store from './store'

// axios 拦截器
import 'amfe-flexible';

Vue.config.productionTip = false;

//提示框
import showToast from './assets/js/toast';
Vue.use(showToast);
import loading from './assets/js/loading' // 引入loading
Vue.use(loading) // 全局使用loading

import globalVariable from './assets/js/global_variable';
Vue.prototype.global = globalVariable;

//获取照片
import getLogo from './assets/js/getLogo';
Vue.use(getLogo);

// import vConsole from '../vconsole'
// Vue.use(vConsole)

//编辑器
const relativePath = window.location.pathname.split('/')[1]
Vue.prototype.$relativePath = relativePath === '' ? relativePath : '/' + relativePath

new Vue({
    router,
    store,
  render: h => h(App),
}).$mount('#app')
